package service;

import model.Goods;

import java.util.List;
import java.util.Map;

/**
 * @aythor:侯仪澳
 * @data:2022/7/21
 */
public interface IGoodsService {
    //查询所有商品
    public List<Goods> queryAllGoods(Goods goods);
    //查询所有商品分页
    public Map<String,Object> queryGoodsByStatus(Goods goods, Integer pageNo);
    //添加商品
    public String addOneGoods(Goods goods);
    //修改上架下架状态值
    public String updateGoodsBatch(List<Goods> list);
    //一级分类
    public List<Goods> queryFirstSort(Goods goods);
    //二级分类
    public List<Goods> querySecondSort(Goods goods);
    //修改货物信息
    public String updateOneGoods(Goods goods);
    //生成订单
    public Map<String, Object> createOrder(Integer carId,Integer gId,Integer buyCount,Integer uId);
    //支付
    public Map<String,Object> pay(Integer uId,String pass,String orderNo);

}
